package com.ruoyi.common.enums;

import cn.hutool.core.date.DatePattern;

/**
 * @author : Mr Li
 * @description : 单号类型
 * @since : 2023/6/14 15:55
 */
public enum OrderTypeEnum {
    支付订单("pay_order","PO", DatePattern.PURE_DATE_PATTERN),
    出库单("outbound_order","OO", DatePattern.PURE_DATE_PATTERN),
    就诊单("attendance_order","AO", DatePattern.PURE_DATE_PATTERN),
    充值记录单("charge_order","CO", DatePattern.PURE_DATE_PATTERN),
    检查记录("inspection_order","IO", DatePattern.PURE_DATE_PATTERN),
    处方单("prescription_order","SO", DatePattern.PURE_DATE_PATTERN);

    private final String type;
    private final String preFix;
    private final String rule;

    public String getType() {
        return type;
    }

    public String getPreFix() {
        return preFix;
    }

    public String getRule() {
        return rule;
    }

    OrderTypeEnum(String type, String preFix, String rule) {
        this.type = type;
        this.preFix = preFix;
        this.rule = rule;
    }
}
